﻿
using Admin.NET.Application.Entity;
using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 设备运行日志基础输入参数
    /// </summary>
    public class DeviceLogBaseInput
    {
        /// <summary>
        /// 标题
        /// </summary>
        public virtual string Title { get; set; }
        
        /// <summary>
        /// 接收内容
        /// </summary>
        public virtual string ReceiveText { get; set; }
        
        /// <summary>
        /// Ip地址
        /// </summary>
        public virtual string Ip { get; set; }
        
        /// <summary>
        /// 网关
        /// </summary>
        public virtual long? GateWayId { get; set; }
        
        /// <summary>
        /// 设备
        /// </summary>
        public virtual long? DeviceId { get; set; }
        
        /// <summary>
        /// 创建者部门Id
        /// </summary>
        public virtual long? CreateOrgId { get; set; }
        
        /// <summary>
        /// 创建者部门名称
        /// </summary>
        public virtual string? CreateOrgName { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public virtual string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public virtual string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual bool IsDelete { get; set; }
    /// <summary>
    /// 处理结果
    /// </summary>
    public virtual DeviceProcotolProessResult DeviceProcotolProessResult { get; set; }

}

    /// <summary>
    /// 设备运行日志分页查询输入参数
    /// </summary>
    public class PageDeviceLogInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string? SearchKey { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string? Title { get; set; }
        
        /// <summary>
        /// 接收内容
        /// </summary>
        public string? ReceiveText { get; set; }
        
        /// <summary>
        /// Ip地址
        /// </summary>
        public string? Ip { get; set; }
        
        /// <summary>
        /// 网关
        /// </summary>
        public long? GateWayId { get; set; }
        
        /// <summary>
        /// 设备
        /// </summary>
        public long? DeviceId { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
         /// 创建时间范围
         /// </summary>
         public DateTime?[] CreateTimeRange { get; set; }
    /// <summary>
    /// 处理结果
    /// </summary>
    public DeviceProcotolProessResult? DeviceProcotolProessResult { get; set; }
}

    /// <summary>
    /// 设备运行日志增加输入参数
    /// </summary>
    public class AddDeviceLogInput : DeviceLogBaseInput
    {
        /// <summary>
        /// 软删除
        /// </summary>
        [Required(ErrorMessage = "软删除不能为空")]
        public override bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 设备运行日志删除输入参数
    /// </summary>
    public class DeleteDeviceLogInput : BaseIdInput
    {
    }

    /// <summary>
    /// 设备运行日志更新输入参数
    /// </summary>
    public class UpdateDeviceLogInput : DeviceLogBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 设备运行日志主键查询输入参数
    /// </summary>
    public class QueryByIdDeviceLogInput : DeleteDeviceLogInput
    {

    }
